//
//  Car.m
//  OCLearning
//
//  Created by Caldremch on 2018/5/25.
//  Copyright © 2018年 Caldremch. All rights reserved.
//

#import "Car.h"
//static关键字在这里的作用是：使这个对象只分配一次内存(static还有很多特性)。
static Car *car = nil;
@implementation Car

+(instancetype)car{
    if (car == nil) {
        car  = [ [Car alloc] init ];
    }
    return car;
}

@end
